from PyQt5.QtWidgets import QTableWidget
from PyQt5.QtGui import QWheelEvent


class MyTableWidget(QTableWidget):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.item_name = None           # 保存该tab对应的item名

    def wheelEvent(self, event: QWheelEvent) -> None:
        print("*******************************")
        print("globalposition:", event.globalPosition())
        print("x:", event.angleDelta().x())
        print("y:", event.angleDelta().y())
        print("pos:", event.pos())
        print("position:", event.position())
        print("source:", event.source())
        print("pixelDelta:", event.pixelDelta().y())




